package com.pagoamigo.domain;

import javax.persistence.Enumerated;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord(finders = { "findAccountsByUsernameEquals", "findAccountsByUsernameNotEquals" })
public class Account {

    @NotNull
    @Size(min = 6)
    private String username;

    @NotNull
    @Size(min = 6)
    private String password;

    @NotNull
    private String email;

    @Enumerated
    private AccountTypes accounttype;
}
